package mul

/**
 *@ClassName Main
 *
 *@Author ykx
 *@Date  2024/6/18 20:11
 *@Version 1.0
 */
fun main(args: Array<String>) {
    var man = Man()
    man.xdd()

    var taiJian = TaiJian()
    taiJian.eat()

    var house = listOf<Human>(man, taiJian)
    for (p in house) {
        if (p is Man) {
            p.eat()
        }
    }
}